class Option {
  /*
  *  Echarts 总装配类
  *  1、需传入对应装配类的名称，全部装配类放置于  /asset/echarts 中
  *  2、传入对应的额外数据属性
  * */
  constructor (id, additionalOptions, myChart) {
    let ChartFactory = require(`../echartsData/${id}.js`)
    this.option = new ChartFactory.ChartFactory(additionalOptions, id, myChart).getOption()
  }
  getOption () {
    return this.option
  }
}

export {Option}
